package com.study.mapstruct.mapper;

import com.study.mapstruct.entity.Student;
import com.study.mapstruct.entity.StudentVO;
import org.springframework.beans.factory.annotation.Autowired;

public abstract class StudentMapperDecorator implements StudentMapper {

    @Autowired
    StudentMapper studentMapper;

    @Override
    public StudentVO student2StudentVO(Student student) {
        StudentVO studentVO = studentMapper.student2StudentVO(student);
        studentVO.setName("嘿嘿嘿");
        return studentVO;
    }

}
